<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>控制面板</title>
</head>
<body>
<div id="root"></div>

<script src="<?php echo $this->replace('__STATIC__');?>/lib/requirejs/require.js"></script>
<?php if ($this->wsr):?>
<script>
    window.WSR_SERVER = '<?php echo $this->cf('wsr.server');?>';
</script>
<script src="<?php echo $this->replace('__STATIC__');?>/plugins/wsr.js"></script>
<?php endif;?>
<script id="tplcontent" type="text/x-template">
    <?php include(__DIR__ . '/' . ($js_name ?? '') . '.vue');?>
</script>
<script>
    require.config({
        baseUrl: '<?php echo $this->replace('__STATIC__');?>/mods/',
        map: {
            '*': {
                css: '../lib/require-css/css'
            }
        },
        paths: {
            vue: '../lib/vue/dist/vue.min',
            el: 'https://unpkg.com/element-ui@2.11.1/lib/index',
            rqcss: 'common/css'
        },
        shim: {
            el: {
                deps: ['css!https://unpkg.com/element-ui@2.11.1/lib/theme-chalk/index.css']
            }
        }
    });
    var tplcontent = document.getElementById('tplcontent').innerHTML;
    var vars = '';
    require(['<?php echo ($js_name ?? '');?>']);
</script>
</body>
</html>
